how to not lose money in the stock market